package com.example.mall.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;

import java.io.Serializable;

/**
 * <p>
 * 用户访问量统计表
 * </p>
 *
 * @author whale
 * @since 2025-05-16
 */
@TableName("tb_user_traffic_statistics")
public class UserTrafficStatistics extends Model<UserTrafficStatistics> {

    private static final long serialVersionUID = 1L;

    /**
     * 统计记录唯一标识
     */
    @TableId("stat_id")
    private Long statId;
    /**
     * 统计日期
     */
    @TableField("stat_date")
    private Date statDate;
    /**
     * 页面浏览量（PV）
     */
    private Integer pv;
    /**
     * 独立访客数（UV）
     */
    private Integer uv;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;


    public Long getStatId() {
        return statId;
    }

    public void setStatId(Long statId) {
        this.statId = statId;
    }

    public Date getStatDate() {
        return statDate;
    }

    public void setStatDate(Date statDate) {
        this.statDate = statDate;
    }

    public Integer getPv() {
        return pv;
    }

    public void setPv(Integer pv) {
        this.pv = pv;
    }

    public Integer getUv() {
        return uv;
    }

    public void setUv(Integer uv) {
        this.uv = uv;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    @Override
    public String toString() {
        return "UserTrafficStatistics{" +
        ", statId=" + statId +
        ", statDate=" + statDate +
        ", pv=" + pv +
        ", uv=" + uv +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        "}";
    }
}
